package com.sx.gongzhong.model;

import java.io.Serializable;

/**
 * Created by XZY on 2018/1/11.
 * 回复人的bean
 */
public class ReplyUserBean implements Serializable{

    /**
     * id : 5e298544f5b211e7a12b00163e0297af
     * mobilePhone : 13111111112
     * name : API管理用户
     * sourcesState : 0
     */

    private String id;
    private String mobilePhone;
    private String name;
    private int sourcesState;
    private String headerUrl;

    public String getHeaderUrl() {
        return headerUrl;
    }

    public void setHeaderUrl(String headerUrl) {
        this.headerUrl = headerUrl;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSourcesState() {
        return sourcesState;
    }

    public void setSourcesState(int sourcesState) {
        this.sourcesState = sourcesState;
    }

    /**
     * 网络请求结果数据
     * Created by ZYG on 2017/11/7.
     */

    public static class BaseResult<T> {

        public boolean success;
        public String msg;
        public int code;
        public T data;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public boolean isSuccess() {
            return success;
        }

        public void setSuccess(boolean success) {
            this.success = success;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public T getData() {
            return data;
        }

        public void setData(T data) {
            this.data = data;
        }

        @Override
        public String toString() {
            return "BaseResult{" +
                    "success=" + success +
                    ", errmsg='" + msg + '\'' +
                    ", errcode=" + code +
                    ", data=" + data +
                    '}';
        }
    }
}
